package com.yuanjiu.service.yuanjiu;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yuanjiu.dao.yuanjiu.HomeDao;
import com.yuanjiu.pojo.yuanjiu.CategoryIdName;
import com.yuanjiu.pojo.yuanjiu.JiuObject;

@Service
public class HomeService {

	@Autowired
	private HomeDao homeDao;

	public List<CategoryIdName> findAllCategories() {
		return homeDao.findAllCategories(); 
	}

	public List<JiuObject> findHotList(String pageSize) {
		return homeDao.findHotList(pageSize);
	}

	public List<JiuObject> findlatestB(String pageSize) {
		return homeDao.findHotListB(pageSize);
	}

	public List<JiuObject> findlatestPu(String pageSize) {
		return homeDao.findHotListPu(pageSize);
	}

	public List<JiuObject> findlatestY(String pageSize) {
		return homeDao.findHotListY(pageSize);
	}

	public List<JiuObject> findlatestP(String pageSize) {
		return homeDao.findHotListP(pageSize);
	}

	public List<JiuObject> findlatestH(String pageSize) { 
		return homeDao.findHotListH(pageSize);
	}
	
	
	
}
